<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index Page</title>

<link rel="stylesheet" type="text/css" media="all" href="/css/common.css">
<link rel="stylesheet" type="text/css" media="all" href="/css/postProduct.css">


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.form.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/postProduct.js"></script>



</head>


<body>

<div class="container">
	<jsp:include page="view/viewHeader.jsp" flush="true"/>
	
	<div class="product_div">
		
		<div class="product_header">상품 등록</div>
		<div class="product_content">
		
			<div class="product_wrapper">
				<div class="product_text">사진등록</div>
				<div class="product_input_div">
					<form class="file_upload_form" method="post" enctype="multipart/form-data" action="accountUpdatePhoto.action" onsubmit="return false;">
						<input name="file" class="upload_file" type="file" onChange="uploadTmpFile(event)"/>
					</form>
				</div>
				<div class="clear"></div>
			</div>
			
			
							
			<div class="regist_type_div">
				<input type="hidden" id="session_flag" value="">
				<div class="product_text">&nbsp;</div>
				<div class="product_input_div">
					<input type="checkbox" id="present_chk" name="present_chk" onclick="clickCheckBox(event)" checked="checked"/>
					<label for="present_chk">선물</label>
					<input type="checkbox" id="point_chk" name="point_chk" onclick="clickCheckBox(event)"/>
					<label for="point_chk">포인트</label>
				</div>
				
				<div class="clear"></div>
			</div>
			
			<!-- certifyAccount.action을 통해서 넘어오는 데이터 -->
			<div class="product_wrapper">
				<div class="product_text">상품명</div>
				<div class="product_input_div">
					<input type="text" class="product_input" id="p_name" name="p_name">
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper">
				<div class="product_text">위치</div>
				<div class="product_input_div">
					<input type="text" class="product_input" id="p_position">
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper">
				<div class="product_text">카테고리</div>
				<div class="product_input_div">
					<input type="text" class="product_input" id="p_category">
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper">
				<div class="product_text">태그</div>
				<div class="product_input_div">
					<input type="text" class="product_input" id="p_tag">
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper">
				<div class="product_text">상품설명</div>
				<div class="product_input_div">
					<textarea class="product_textarea" id="p_detail" name="p_detail"></textarea>
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper" style="display: none;">
				<div class="product_text">포인트</div>
				<div class="product_input_div">
					<input type="text" class="product_input" id="p_point" name="p_point">
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="product_wrapper">
				<input class="product_button" type="button" value="등록하기" onclick="postProduct()"/>
				<div class="clear"></div>
			</div>
			
		</div>
	</div>
</div>



</body>
</html>